package com.itqf.service.impl;

import com.itqf.entity.Users;
import com.itqf.mapper.UserMapper;
import com.itqf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 作者：杨超波
 * 时间：2019/12/5  14:40
 * 描述：
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public Users selectByUserName(String username) {
        Users users = new Users();
        users.setAccount(username);
        Users user = userMapper.selectOne(users);
        return user;
    }
}
